Skip to content

Conversation

@javiercn
Copy link
Member

@javiercn javiercn commented Jan 20, 2025

  • The only assets that need to go into the .Internal.Assets package are blazor.web.js and blazor.server.js.
  • blazor.webassembly.js should continue shipping as a package.

We should look into making blazor.webassembly.js a regular static web asset, instead of the custom dance that happens now.

This change is in reaction to an issue we are seeing in a dependency update PR where blazor.webassembly.js is getting included twice.

Once by _ResolveBlazorFrameworkAssets and another one by _ResolveBlazorWasmOutputs.

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Jan 20, 2025
@javiercn javiercn force-pushed the javiercn/framework-assets-fix branch from ea34936 to be04b5d Compare January 20, 2025 19:19
@javiercn javiercn force-pushed the javiercn/framework-assets-fix branch from 95b8ba9 to d1dad38 Compare January 21, 2025 15:42
@javiercn javiercn marked this pull request as ready for review January 21, 2025 18:11
@javiercn javiercn requested a review from a team as a code owner January 21, 2025 18:11
@@ -1,3 +1,11 @@
<Project>
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(BuildNodeJS)' != 'false'">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BuildNodeJs is `` in some cases, so this check needs to explicitly check against false

@javiercn javiercn merged commit 785437f into main Jan 22, 2025
27 checks passed
@javiercn javiercn deleted the javiercn/framework-assets-fix branch January 22, 2025 12:19
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants